package com.zmn.plat.common.dto.category;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author duanzuocai
 * @version v1.0
 * @since 2018/10/19 10:36
 * @类说明：
 */
public class CategoryDRO implements Serializable {
    private static final long serialVersionUID = -8774922581223392995L;
    private int categId;
    /**
     * 产品分类 1 后端产品 2前端产品
     */
    private Integer showType;
    /**
     * 名称，比如：电视、空调、冰箱、清洗
     */
    private String name;
    /**
     * 父分类ID，1级分类的父ID统一为1
     */
    private Integer parentId;
    /**
     * 级别，目前只有2个级别：1一级；2二级
     */
    private Integer level;
    /**
     * 排序号，编号越小越靠前
     */
    private Integer sort;
    /**
     * 状态：1停用，2启用
     */
    private Integer status;
    /**
     * 说明
     */
    private String desc;

    /**
     * icon
     */
    private String icon;

    /**
     * 计价器名称
     */
    private String tariffName;
    /**
     * 计价器状态
     */
    private Integer tariffStatus;
    /**
     * 服务时长
     * 过时原因：需求变更，服务时长只取项目上的
     */
    @Deprecated
    private Integer serviceMinutes;

    /**
     * 分类名称简拼
     */
    private String simpleSpell;

    /**
     * 拼音首字母
     */
    private String firstLetter;

    public int getCategId() {
        return categId;
    }

    public void setCategId(int categId) {
        this.categId = categId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTariffName() {
        return tariffName;
    }

    public void setTariffName(String tariffName) {
        this.tariffName = tariffName;
    }

    public Integer getTariffStatus() {
        return tariffStatus;
    }

    public void setTariffStatus(Integer tariffStatus) {
        this.tariffStatus = tariffStatus;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getServiceMinutes() {
        return serviceMinutes;
    }

    public void setServiceMinutes(Integer serviceMinutes) {
        this.serviceMinutes = serviceMinutes;
    }

    public String getSimpleSpell() {
        return simpleSpell;
    }

    public void setSimpleSpell(String simpleSpell) {
        this.simpleSpell = simpleSpell;
    }

    public String getFirstLetter() {
        return firstLetter;
    }

    public void setFirstLetter(String firstLetter) {
        this.firstLetter = firstLetter;
    }

    public Integer getShowType() {
        return showType;
    }

    public void setShowType(Integer showType) {
        this.showType = showType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof CategoryDRO)) {
            return false;
        }
        CategoryDRO that = (CategoryDRO) o;
        return categId == that.categId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(categId);
    }

    @Override
    public String toString() {
        return "CategoryDRO{" +
                "categId=" + categId +
                ", showType=" + showType +
                ", name='" + name + '\'' +
                ", parentId=" + parentId +
                ", level=" + level +
                ", sort=" + sort +
                ", status=" + status +
                ", desc='" + desc + '\'' +
                ", icon='" + icon + '\'' +
                ", tariffName='" + tariffName + '\'' +
                ", tariffStatus=" + tariffStatus +
                ", serviceMinutes=" + serviceMinutes +
                ", simpleSpell='" + simpleSpell + '\'' +
                ", firstLetter='" + firstLetter + '\'' +
                '}';
    }
}
